package com.moyq5.mvc.maker.test.web;

/**
 * @author Moyq5
 * @date 2018年11月3日
 */
public class MyException extends RuntimeException {

	private static final long serialVersionUID = 1L;

	public MyException(MyErrorCode code) {
		super("[" + code.name() + "]"+ code.getText());
	}
	
	public MyException(MyErrorCode code, String message) {
		super("[" + code.name() + "]" + message);
	}
	
	public MyException(String message) {
		super("[" + MyErrorCode.C9999.name() + "]" + message);
	}
	
	public MyException() {
		super("[" + MyErrorCode.C9999.name() + "]" + MyErrorCode.C9999.getText());
	}
	
	
}
